{% load endless %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title></title>
    <script src="/static/scripts/jquery-1.4.1.min.js"></script>
    <script src="/static/scripts/export.js"></script>
    <link href="/static/css/diffprices/styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<a href="/logout/">Выйти</a>
<a href="/export/">Назад</a>
<a href="/admin/">Главная</a>

<br>
Найдено совпадение с поставщиком: {{ count_all }}<br>
Обновлено товаров: {{ count }}<br>
Изменено цен: {{ change_price }}<br>
Изменено наличие: {{ change_avail }}<br>
{% paginate products %}
<table border="1" class="" id="t">
    <thead>
    <tr>
        <td>id товара</td>
        <td>sku товара</td>
        <td>имя товара</td>
        <td>категория товара поставщика товара</td>
        <td>старая цена</td>
        <td>цена</td>
        <td>наличие</td>
        <td>изменение цены</td>
        <td>изменение наличие</td>
    </tr>
    <form id="filter" action="/export/loginfo/{{ year }}/{{ month }}/{{ day }}/" method="post">
        <tr>
            <td><input name="id" value="{{ filter.id }}" type="text"></td>
            <td><input name="sku" value="{{ filter.sku }}" type="text"></td>
            <td><input name="name" value="{{ filter.name }}" type="text"></td>
            <td><input name="b2b_category" value="{{ filter.b2b_category }}" type="text"></td>
            <td><input name="last_price" value="{{ filter.last_price }}" type="text"></td>
            <td><input name="price" value="{{ filter.price }}" type="text"></td>
            <td><input name="avail" value="{{ filter.avail }}" type="text"></td>
            <td><input name="change_price" value="{{ filter.change_price }}" type="text"></td>
            <td><input name="change_avail" value="{{ filter.change_avail }}" type="text"></td>
        </tr>
    </form>
    </thead>
    <tbody id="fbody">

    {% if products %}
        {% for product in products %}
            <tr class="{{ product.status }}">
                <td>{{ product.id }}</td>
                <td>{{ product.sku }}</td>
                <td>{{ product.name }}</td>
                <td>{{ product.b2b_category }}</td>
                <td>{{ product.last_price }}</td>
                <td>{{ product.price }}</td>
                <td>{{ product.avail }}</td>
                <td>{{ product.change_price }}</td>
                <td>{{ product.change_avail }}</td>
            </tr>
        {% endfor %}

    {% endif %}
    </tbody>
    {% show_pages %}
</table>
</body>
</html>